package com.yhb.channel.provider;

import com.yhb.channel.dao.flow.ExecutionFlow;
import org.springframework.stereotype.Service;

@Service
public interface INotifyProvider {
    public enum OrderStatus{
        SUCCEED,
        FAILED
    }

    /**
     * 通知业务方流水订单状态
     * @param flow 流水
     * @param status 状态
     */
    void orderStatusNotify(ExecutionFlow flow, OrderStatus status, ExecutionFlow externalFlow);
    void asyncOrderStatusNotify(ExecutionFlow flow, OrderStatus status, ExecutionFlow externalFlow);
    void orderStatusNotify(ExecutionFlow flow, OrderStatus status);
}
